package nb.diskfilesystem.main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.stage.Stage;
import nb.diskfilesystem.model.FAT;

import java.io.IOException;

public class MainApplication extends Application {
    // 引入FAT文件
    private final FAT fat = new FAT();
    @Override
    public void start(Stage stage) throws IOException {
        fat.displayFAT();
        FXMLLoader fxmlLoader = new FXMLLoader(MainApplication.class.getResource("/nb/diskfilesystem/fxml/mainview.fxml"));
        Scene scene = new Scene(fxmlLoader.load());
        stage.setTitle("磁盘文件系统");
        stage.setScene(scene);
        stage.setMinWidth(900);
        stage.setMinHeight(620);
        stage.show();
    }

    public static void main(String[] args) {
        launch();
    }
}